package com.sanq.product.cab.db;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * version: 获取数据源
 * ---------------------
 * @author sanq.Yan
 * @date 2020/1/26
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceHolder.getDataSouce();
    }
}
